package com.peko.openFeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author：Peko
 * @Description：TODO
 * @Date：Created in 12:12 2023/8/2
 */

//fallback 用来指定当调用的服务不可用时，默认的备选响应处理
@FeignClient(value = "HYSTRIX",fallback = HystrixClientFallback.class)
public interface HystrixClient {
    @GetMapping("demo")
    String demo(@RequestParam("id") Integer id);
}
